public class Page implements Comparable<Page> {
    private String url;
    private long visitNumber;
    private long visitTime ;

    public Page() {
    }

    public Page(String url, long visitNumber, long visitTime) {
        this.url = url;
        this.visitNumber = visitNumber;
        this.visitTime = visitTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getVisitNumber() {
        return visitNumber;
    }

    public void setVisitNumber(long visitNumber) {
        this.visitNumber = visitNumber;
    }

    public long getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(long visitTime) {
        this.visitTime = visitTime;
    }


    @Override
    public int compareTo(Page other) {
        return Long.compare(this.visitTime, other.visitTime);
    }
}
